clipboard: Fix a crash when GdkContentProviderUnion doesn't support the given data...
authorCarlos Garcia Campos <cgarcia@igalia.com>
Thu, 25 Mar 2021 14:10:00 +0000 (15:10 +0100)
committerCarlos Garcia Campos <cgarcia@igalia.com>
Thu, 25 Mar 2021 14:10:00 +0000 (15:10 +0100)
commit50b70298c0100fb49fbe4ac20f7f2574e7837e9d
treebe852a43b33b0771f4ad17578884594be3fc794a
parentbd7df4b81660924ac3d7cc7beffec6e49c1c27b7
clipboard: Fix a crash when GdkContentProviderUnion doesn't support the given data format

After iterating all the providers, all of them returning unsupported
error, gdk_content_provider_union_get_value() returns FALSE without
filing the given GError. Then gdk_clipboard_read_value_internal()
assumes there's a GError when FALSE is returned and
g_task_return_error() fails. We can just chain up to parent
implementation to ensure the GError is filled with unsupported error.
gdk/gdkcontentproviderimpl.c